Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify relational domains interface somewhat #1283

Merged
merged 10 commits into from
Dec 7, 2023

Conversation

michael-schwarz
Copy link
Member

This simplifies the interface for relational analyses by

  • Removing some genericity that was unused and complicated the structure
  • Introducing GobApron that opens Apron and decorates some of its modules with additional helpers as we have done for some other libraries.

This should hopefully make life easier for our practical course that is currently ongoing.

@michael-schwarz michael-schwarz added the cleanup Refactoring, clean-up label Dec 4, 2023
@michael-schwarz
Copy link
Member Author

Looking at that code I also see a lot of code with the pattern

let remove_filter t f = timing_wrap "remove_filter" (remove_filter t) f

I am starting to wonder whether it may be worth writing a deriver for things like this.

Copy link
Member

@sim642 sim642 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sooner or later we'll need the generality anyway if we want more general relational domains that don't depend on Apron. But doing that cleanly would require much bigger refactoring anyway, so this should be fine for now.

src/cdomains/apron/relationDomain.apron.ml Show resolved Hide resolved
src/analyses/apron/apronAnalysis.apron.ml Outdated Show resolved Hide resolved
src/analyses/apron/relationAnalysis.apron.ml Outdated Show resolved Hide resolved
michael-schwarz and others added 3 commits December 7, 2023 11:22
@michael-schwarz michael-schwarz merged commit 6be8d60 into master Dec 7, 2023
17 checks passed
@michael-schwarz michael-schwarz deleted the apron_libification branch December 7, 2023 16:53
michael-schwarz added a commit that referenced this pull request Dec 7, 2023
@sim642 sim642 added this to the v2.4.0 milestone Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Refactoring, clean-up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants